package framework.system
{
	import mx.rpc.AsyncToken;
	import mx.rpc.remoting.RemoteObject;
	
	import framework.BaseCommand;
	import framework.BaseEvent;
	
	public class SystemCommand extends BaseCommand
	{
		[Inject]
		public var moduleService:RemoteObject;
		
		override public function execute(p_evt:BaseEvent):AsyncToken
		{
			var evt:SystemEvent = p_evt as SystemEvent;
			if(evt.serviceType == "module")
				service = moduleService;
			return super.execute(p_evt);
		}
	}
}